<%
/*
 * Copyright (c) 2011 Metrum Research Group LLC. All Rights Reserved.
 *
 * You may use this software under the terms of GPL v3 (http://www.gnu.org/licenses/gpl.html).
 *
 * METRUM RESEARCH GROUP LLC MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
 * THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
 * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
 * PARTICULAR PURPOSE, OR NON-INFRINGEMENT. METRUM RESEARCH GROUP LLC SHALL NOT BE LIABLE FOR
 * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
 * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
 */
%>
<%@ page import="java.util.*" %>
<%@ page import="java.io.*" %>
<%@ page import="sumo.*" %>

<%
    Map param_map = request.getParameterMap();
    Iterator i = param_map.entrySet().iterator();
    ExpressionEvaluator R = (ExpressionEvaluator) session.getAttribute("evaluator");
    
    while(i.hasNext()){
        Map.Entry me = (Map.Entry)i.next();
        String theKey = (String)me.getKey();
        String[] theValue = (String[])me.getValue();
        String result = "";
        if(SumoUtils.isFloat(theValue[0])) result = R.evaluate(theKey + " <- " + theValue[0]);
	else result = R.evaluate(theKey + " <- '" + theValue[0] + "'");
    }
%>

